home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / documents / ELF / compact1.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-11  |  447 b   |  21 lines

  1. /* file compact1.c */ 
  2. #include <stdio.h> 
  3. #include <stdlib.h>
  4. #ifdef BUG 
  5. extern int __start[]; 
  6. #else 
  7. extern int _ftext[]; 
  8. #endif
  9. extern int _fdata[]; 
  10. #define SIZE 4096 
  11. int array[SIZE];
  12. void main(void) { 
  13. #ifdef BUG
  14.     printf("Start of program text = 0x%lx\n",(unsigned long)__start);
  15. #else
  16.     printf("Start of program text = 0x%lx\n",(unsigned long)_ftext);
  17. #endif
  18.     printf("Start of program data = 0x%lx\n",(unsigned long)_fdata);
  19.     exit(0); 
  20. }
  21.